package com.tbit.uqbike.object.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 17:08 2023/2/7
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("detentionarea")
public class DetentionArea {
    /**
     * 扣押区id
     */
    @TableId(type = IdType.AUTO, value = "detentionId")
    private Integer detentionId;
    /**
     * 代理商id
     */
    @TableField(value = "accountId")
    private Integer accountId;
    /**
     * 扣押区名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 原始经度
     */
    @TableField(value = "lo")
    private Double lo;
    /**
     * 原始纬度
     */
    @TableField(value = "la")
    private Double la;
    /**
     * 校准后经度
     */
    @TableField(value = "loC")
    private Double loC;
    /**
     * 校准后纬度
     */
    @TableField(value = "laC")
    private Double laC;
    /**
     * 误差范围
     */
    @TableField(value = "allowRange")
    private Integer allowRange;
    /**
     * 经纬度集合(多边形还车点)
     */
    @TableField(value = "points")
    private String points;
    /**
     * 多边行扣押区点(高德地图)
     */
    @TableField(value = "pointsC")
    private String pointsC;
    /**
     * 类型 0 圆形 1 多边形
     */
    @TableField(value = "type")
    private Integer type;
    @TableField(value = "updateTime")
    private Date updateTime;
    /**
     * 是否启用 0弃用1启用
     */
    @TableField(value = "enable")
    private Integer enable;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    //当前扣押区下车辆
    private int total;
}
